import request from '@/utils/request'

// 查询回帖列表
export function listPostManageReply(query) {
  return request({
    url: '/system/postManageReply/list',
    method: 'get',
    params: query
  })
}

// 查询回帖详细
export function getPostManageReply(id) {
  return request({
    url: '/system/postManageReply/' + id,
    method: 'get'
  })
}

// 新增回帖
export function addPostManageReply(data) {
  return request({
    url: '/system/postManageReply',
    method: 'post',
    data: data
  })
}

// 修改回帖
export function updatePostManageReply(data) {
  return request({
    url: '/system/postManageReply',
    method: 'put',
    data: data
  })
}

// 删除回帖
export function delPostManageReply(id) {
  return request({
    url: '/system/postManageReply/' + id,
    method: 'delete'
  })
}
